# -*- coding: utf-8 -*-
from time import sleep
from phprpc import PHPRPC_WSGIApplication

def add(a, b): 
    return a + b 

phprpc_app = PHPRPC_WSGIApplication(sessionName="werkzeug.session")
phprpc_app.add(add)
phprpc_app.add(pow)


from accost.wsgiapps.xmlrpc import WSGIXMLRPCApplication
xmlrpc_app = WSGIXMLRPCApplication(methods=[add, pow])

from accost.wsgiapps.jsonrpc import WSGIJSONRPCApplication
jsonrpc_app = WSGIJSONRPCApplication(methods=[add, pow])
